Counting Number of Words in given String